From 296a74f9a96dbc441b2e8c3d4bdf7b636fe9f301 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Fri, 10 May 2019 10:39:42 +0100 Subject: [PATCH] Fix playback of redirected streams =================================================================== Gbp-Pq: Name fix-redirected-streams.patch --- .../graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp index 253f916d65..534a41a37a 100644 --- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp +++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp @@ -1350,9 +1350,8 @@ void MediaPlayerPrivateGStreamer::handleMessage(GstMessage* message) } #endif else if (gst_structure_has_name(structure, "http-headers")) { - const char* redirectionUri = gst_structure_get_string(structure, "redirection-uri"); - const char* uri = redirectionUri ? redirectionUri : gst_structure_get_string(structure, "uri"); - if (uri) { + GST_DEBUG_OBJECT(pipeline(), "Processing HTTP headers: %" GST_PTR_FORMAT, structure); + if (const char* uri = gst_structure_get_string(structure, "uri")) { URL url(URL(), uri); m_origins.add(SecurityOrigin::create(url)); -- 2.30.2